﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SkillifyMaster.master" AutoEventWireup="true" CodeFile="ViewPerformanceUser.aspx.cs" Inherits="Admin_ViewPerformanceUser" %>

<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table width="100%">

        <tr>
           <%-- <td align="right" width="20%">
            </td>--%>
            <td align="right">
                <h2><asp:Label ID="lablPer" runat="server" Text="View Performence"></asp:Label></h2>
            </td>
        </tr>

        <tr>
            <td>
               <asp:chart id="Chart1" EnableViewState="True"  ImageLocation="../tempImages/ChartPic_#SEQ(300,5)"
                    ImageStorageMode="UseImageLocation" ImageType="Jpeg" runat="server" 
                    Height="400px" Width="930px" BorderDashStyle="Solid" BackSecondaryColor="White" 
                    BackGradientStyle="TopBottom" BorderWidth="2px" backcolor="255, 128, 0" BackImage="../images/logo_img.gif" BackImageAlignment="TopLeft"  
                    BorderColor="#1A3B69" ondatabound="Chart1_DataBound" BackImageWrapMode="Unscaled">
                        <%--<legends>
                            <asp:Legend IsTextAutoFit="False" Name="Default" BackColor="Transparent" Font="Trebuchet MS, 8.25pt, style=Bold"></asp:Legend>
                        </legends>--%>
                        <Titles>
                            <asp:Title Alignment="TopRight" Font="Calibri, 15.75pt, style=Bold" 
                                ForeColor="White" Name="Title1">
                            </asp:Title>
                        </Titles>
                        <borderskin skinstyle="Emboss"></borderskin>
                        <series>
                            <asp:Series Name="Series1" BorderColor="180, 26, 59, 105" ChartType="Line" 
                                YValuesPerPoint="2">
                                <%--<points>
                                    <asp:DataPoint YValues="45" />
                                    <asp:DataPoint YValues="34" />
                                    <asp:DataPoint YValues="67" />
                                    <asp:DataPoint YValues="31" />
                                    <asp:DataPoint YValues="27" />
                                    <asp:DataPoint YValues="87" />
                                    <asp:DataPoint YValues="45" />
                                    <asp:DataPoint YValues="32" />
                                </points>--%>
                            </asp:Series>
                        </series>
                        <chartareas>
                            <asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid" BackSecondaryColor="White" BackColor="64, 165, 191, 228" ShadowColor="Transparent" Area3DStyle-WallWidth="10" BackGradientStyle="TopBottom">
<%--                                <area3dstyle Rotation="10" perspective="10" Inclination="15" IsRightAngleAxes="False" wallwidth="0" IsClustered="False"></area3dstyle>--%>
                                <axisy linecolor="64, 64, 64, 64" Title="Percentage" TitleFont="verdana, 11pt">
                                    <labelstyle font="Trebuchet MS, 8.25pt, style=Bold" />
                                    <majorgrid linecolor="64, 64, 64, 64" />
                                </axisy>
                                <axisx linecolor="64, 64, 64, 64" Title="Test Name" TitleFont="verdana, 11pt">
                                    <labelstyle font="Trebuchet MS, 8.25pt, style=Bold" />
                                    <majorgrid linecolor="64, 64, 64, 64" />
                                </axisx>

<Area3DStyle WallWidth="10"></Area3DStyle>
                            </asp:ChartArea>
                        </chartareas>
                    </asp:chart>
            </td>
        </tr>

        <tr>
            <td>
                <table align="left" width="100%">
                    <tr>
                        <td align="left" valign="top">
                            <asp:GridView ID="gvStudent" runat="server" AutoGenerateColumns="False" 
                    BackColor="LightGoldenrodYellow"
                                BorderColor="Tan" BorderWidth="1px" 
            CellPadding="2" ForeColor="Black" GridLines="Vertical"
                               Width="930px">
            <AlternatingRowStyle BackColor="PaleGoldenrod" />
                    <Columns>
                            <asp:BoundField DataField="UserName" HeaderText="UserName" 
                                SortExpression="UserName" />
                            <asp:BoundField DataField="TestId" HeaderText="TestId" 
                                SortExpression="TestId" />
                            <asp:BoundField DataField="TestName" HeaderText="TestName" 
                                SortExpression="TestName" />
                            <asp:BoundField DataField="NoOfQuestion" HeaderText="Max Marks" 
                                SortExpression="NoOfQuestion" />
                            <asp:BoundField DataField="CutOffMarks" HeaderText="CutOffMarks" 
                                SortExpression="CutOffMarks" />
                            <asp:BoundField DataField="Score" HeaderText="MarksObtained" 
                                SortExpression="Score" />
                            <asp:BoundField DataField="Result" HeaderText="Result" 
                                SortExpression="Result" />
                            <asp:BoundField DataField="AttemptNo" HeaderText="AttemptNo" 
                                SortExpression="AttemptNo" />
                            <asp:BoundField DataField="Percentage" HeaderText="Percentage" 
                                SortExpression="Percentage" />
                    </Columns>
                        <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <EmptyDataRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
         <FooterStyle BackColor="Tan" />
            <HeaderStyle BackColor="#CB6811" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
            <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                HorizontalAlign="Center" />
            <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <SelectedRowStyle BackColor="#E49642" ForeColor="GhostWhite" />
            <SortedAscendingCellStyle BackColor="#FAFAE7" />
            <SortedAscendingHeaderStyle BackColor="#DAC09E" />
            <SortedDescendingCellStyle BackColor="#E1DB9C" />
            <SortedDescendingHeaderStyle BackColor="#C2A47B" />
                </asp:GridView>
                        </td>
                    </tr>
            </table>
            </td>
        </tr>
    </table>
</asp:Content>

